export interface VisualTask {
  id: number;
  type: 'shape_detection' | 'color_matching' | 'size_comparison' | 'spatial_position' | 'pattern_completion' | 'depth_perception';
  instruction: string;
  timeLimit: number; // 秒
  difficulty: 'easy' | 'medium' | 'hard';
}

export const VISUAL_TASKS: VisualTask[] = [
  {
    id: 1,
    type: 'shape_detection',
    instruction: '找出所有的三角形',
    timeLimit: 8,
    difficulty: 'easy'
  },
  {
    id: 2,
    type: 'color_matching',
    instruction: '点击所有红色的图形',
    timeLimit: 10,
    difficulty: 'easy'
  },
  {
    id: 3,
    type: 'size_comparison',
    instruction: '选择最大的圆形',
    timeLimit: 6,
    difficulty: 'medium'
  },
  {
    id: 4,
    type: 'spatial_position',
    instruction: '找出左上角的图形',
    timeLimit: 5,
    difficulty: 'easy'
  },
  {
    id: 5,
    type: 'pattern_completion',
    instruction: '找出缺失的图案',
    timeLimit: 12,
    difficulty: 'hard'
  },
  {
    id: 6,
    type: 'depth_perception',
    instruction: '选择看起来最近的物体',
    timeLimit: 8,
    difficulty: 'medium'
  },
  {
    id: 7,
    type: 'shape_detection',
    instruction: '计算正方形的数量',
    timeLimit: 10,
    difficulty: 'medium'
  },
  {
    id: 8,
    type: 'color_matching',
    instruction: '找出颜色不同的图形',
    timeLimit: 8,
    difficulty: 'medium'
  },
  {
    id: 9,
    type: 'size_comparison',
    instruction: '按大小顺序排列',
    timeLimit: 15,
    difficulty: 'hard'
  },
  {
    id: 10,
    type: 'spatial_position',
    instruction: '找出在中心位置的图形',
    timeLimit: 6,
    difficulty: 'easy'
  },
  {
    id: 11,
    type: 'pattern_completion',
    instruction: '完成对称图案',
    timeLimit: 12,
    difficulty: 'hard'
  },
  {
    id: 12,
    type: 'depth_perception',
    instruction: '判断重叠关系',
    timeLimit: 10,
    difficulty: 'medium'
  },
  {
    id: 13,
    type: 'shape_detection',
    instruction: '找出所有五边形',
    timeLimit: 12,
    difficulty: 'hard'
  },
  {
    id: 14,
    type: 'color_matching',
    instruction: '匹配相同颜色组合',
    timeLimit: 15,
    difficulty: 'hard'
  },
  {
    id: 15,
    type: 'size_comparison',
    instruction: '找出面积相等的图形',
    timeLimit: 10,
    difficulty: 'medium'
  }
];

export const SHAPES = ['circle', 'square', 'triangle', 'diamond', 'pentagon', 'hexagon'] as const;
export const COLORS = ['#ef4444', '#3b82f6', '#10b981', '#f59e0b', '#8b5cf6', '#ec4899'] as const;
export const SIZES = ['small', 'medium', 'large'] as const;